﻿using colorgetter;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace EasyTools.UI
{
    public partial class Main : Form
    {
        public Main()
        {
            InitializeComponent();
        }

        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            new FileSplitFrm().ShowDialog();
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            new ImgFrm().ShowDialog();
        }

        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            new UpnpFrm().ShowDialog();
        }

        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            new TextSearch().Show();
        }

        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            new FormColor().Show();
        }

        private void toolStripButton6_Click(object sender, EventArgs e)
        {
            new FormSelect().Show();
        }

        private void toolStripButton7_Click(object sender, EventArgs e)
        {

            var tf = new TopFrm();
            tf.Move += Tf_Move;
            tf.VisibleChanged += Tf_VisibleChanged;
            tf.Show();
        }

        private void Tf_VisibleChanged(object sender, EventArgs e)
        {
            this.Visible = (sender as Form).Visible;
        }

        private void Tf_Move(object sender, EventArgs e)
        {
            this.Location = (sender as Form).Location;


        }


        private void Main_Load(object sender, EventArgs e)
        {
            
        }

        private void toolStripButton8_Click(object sender, EventArgs e)
        {
            new FrmDocTrans().Show();
        }

        private void toolStripButton9_Click(object sender, EventArgs e)
        {
            new FormWinHook().Show();
        }
    }
}
